//
//  PurumMinigameBullet.h
//  PurumClothes
//
//  Created by 솔이 박 on 11. 4. 30..
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//


typedef enum tagBulletType
{
	BulletType_Red,
	BulletType_Yellow,
	BulletType_Blue,
	
} BulletType;

typedef enum tagBulletStateType
{
	BulletStateType_Appear,
	BulletStateType_Shot,
	BulletStateType_Explode,
	BulletStateType_Disappear,
	
} BulletStateType;

@interface PurumMinigameBullet : NSObject {

	BulletType type;
	BulletStateType state;

	int x,y;
	int velocity;
	
	UIImageView	*bulletImage;
}

-(bool) isEnded;

-(void) initializeTimer;
-(void) tick : (NSTimer*)theTimer;

-(void) update;
-(void) move;

-(void) nextState;

-(void) initialize : (UIView*)view ofBulletType: (BulletType)bulletType withStartX: (int)startX andStartY: (int)startY;
-(void) finalize;

-(void) buildBullet : (UIView*)view;

-(void) loadBulletImage;
-(void) addBulletImage : (UIView*)view;
-(void) removeBulletImage;

-(NSString*) getBulletImagePath;


@end
